<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html >
<html>
	<head>
		<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" media="screen" />
		<link href="css/a11yTree.min.css" rel="stylesheet">
		<link href="css/posAndsite.css" rel="stylesheet">
		<script type="text/javascript" src="js/base/jquery.js"></script>
		<script type="text/javascript" src="js/plugins/jquery.cookie.js"></script>
		<script type="text/javascript" src="js/plugins/jqModal.js"></script>
		<script type="text/javascript" src="js/plugins/jqDnR.js"></script>
		<script type="text/javascript" src="js/dataTransConfig.js"></script>
		<script type="text/javascript"
			src="js/powerFloat/js/jquery-powerFloat.js"></script>
		<script type="text/javascript" src="js/main.js"></script>
		<jsp:include page="title.jsp"></jsp:include>
	</head>
	<body onload="load();">
		<div class="headdiv"><jsp:include page="head.jsp"></jsp:include></div>
		<div class="zhuti">
			<div class="jingediv"></div>
			<div class="lefterdiv">
				<jsp:include page="menu.jsp"></jsp:include>
			</div>
			<div class="jingediv"></div>
			<div class="righterdiv" id="right">
				<form action="dataTransitionManager" method="post" id="myForm">
				<div class="sitebar">
					<div class="floatleft div25 defaultheight"></div>
						<span class="sitename font24"> 数据接口 </span>
						<span class="date font16"> ${datetime } </span>
				</div>
					<div class="widthall">
						<div class="title">
							<div class="floatleft div25"></div>
							<div class="titlename bold font24 top26">
								接口转换配置
							</div>
						</div>
						
						
						<div class="whitediv font16">
							<div class="divcontent heigthall">
								<div class="em25 widthall"></div>
								<div class="widthall">
									<table style="width:100%">
									<tr>
										<td class="projectL">项目名称：</td>
										<td class="projectInput">
												<select name="dataTransInfo.square" id="square" 
													onchange="updateCombo();" value="${dataTransInfo.square}"
													class="selectTrans projectName">
													<c:forEach items="${squareList}" var="square">
														<c:choose>
															<c:when test="${square.siteid eq dataTransInfo.square}">
																<option value="${square.siteid}" selected="selected">
																	${square.sitename}
																</option>
															</c:when>
															<c:otherwise>
																<option value="${square.siteid}">
																	${square.sitename}
																</option>
															</c:otherwise>
														</c:choose>
													</c:forEach>
												</select>
											</td>
											<td class="intervalOne"></td>
											<td class="intefaceTypeL">接口类型：</td>
											<td class="intefaceTypeInput">
												
												<select name="dataTransInfo.type" id="type" onchange="" class="selectTrans">
													<option value="1" select="selected">POS数据导入</option>
												</select>
											</td>
											<td class="intervalOne"></td>
											<td class="transObjectL">转换对象：</td>
											<td class="transObjectInput">
												<select  name="dataTransInfo.objectType" id="objectType"
													onchange="updateCombo();" value="${dataTransInfo.objectType}"
													class="selectTrans">
												<c:forEach items="${transObjects}" var="transObject">
														<c:choose>
															<c:when
																test="${transObject.objectTypeId eq dataTransInfo.objectType}">
																<option value="${transObject.objectTypeId}"
																	selected="selected">
																	${transObject.objectTypeName}
																</option>
															</c:when>
															<c:otherwise>
																<option value="${transObject.objectTypeId}">
																	${transObject.objectTypeName}
																</option>
															</c:otherwise>
														</c:choose>
													</c:forEach>
												</select>
											</td>
											<td class="firstSpaceW"></td>
									</tr>
									</table>
								</div>
								<div class="widthall szjiange"></div>
								<div class="em20 widthall"></div>
							</div>
						</div>
						
						<div class="widthall szjiange"></div>
						
						<div class="whitediv font16">
							<div class="divcontent heigthall">
								<div class="em25 widthall"></div>
								<div class="widthall">
									<table style="width:100%">
										<tr>
											<td class="siteType">
												
												<select name="dataTransInfo.parentType" id="parentType" onchange="updateNameCombo();" class="selectTrans">
													<c:forEach items="${siteTypeList}" var="siteType">
														<c:choose>
															<c:when
																test="${siteType.innerid eq dataTransInfo.parentTypeId}">
																<option value="${siteType.innerid}"
																	selected="selected">
																	${siteType.innername}
																</option>
															</c:when>
															<c:otherwise>
																<option value="${siteType.innerid}">
																	${siteType.innername}
																</option>
															</c:otherwise>
														</c:choose>
													</c:forEach>
												</select>
											</td>
											<td class="intervalOne"></td>
											<td class="siteName">
												<select name="dataTransInfo.parentName" id="parentName" onchange="changeState();" class="selectTrans">
													<c:forEach items="${siteNameList}" var="siteName">
														<c:choose>
															<c:when
																test="${siteName.innerid eq dataTransInfo.parentNameId}">
																<option value="${siteName.innerid}"
																	selected="selected">
																	${siteName.innername}
																</option>
															</c:when>
															<c:otherwise>
																<option value="${siteName.innerid}">
																	${siteName.innername}
																</option>
															</c:otherwise>
														</c:choose>
													</c:forEach>
												</select>
											</td>
											<td class="intervalOne"></td>
											<td class="state">
												<select name="dataTransInfo.state" id="state" class="selectTrans" onchange="changeState();">
													<option value="-1" >全部</option>
													<option value="1" >使能</option>
													<option value="0" >未使能</option>
												</select>
											</td>
											<td class="secondSpaceW"></td>
											<td class="floatright">
												<div class="floatleft searchborder lineh35">
													<div class="floatleft" style="width: 83%">
														<input type="text" name="dataTransInfo.innerName"
															id="innerName" value="${dataTransInfo.innerName}"
															class="widthall" placeholder="${lang.guanjianzitip}" />
													</div>
													<div class="floatleft heigthall" style="width: 15%">
														<img onclick="showLoading();search()"
															src="images/research.png"
															style="width: 80%; height: 80%; vertical-align: middle" />
													</div>
												</div>
											</td>
										</tr>
									</table>
								</div>
								<div class="widthall szjiange"></div>
								<div class="em20 widthall"></div>
							</div>
						</div>
						<div class="widthall szjiange"></div>
						<div id="umlist" class="whitediv umlist">
							<div class="divcontent heigthall">
								<div class="em25 widthall"></div>
								<div class="widthall">
									<table id="myTable" class="indextable xyliebiao widthall"
										style="text-align: center !important">
										<tr style="height: 3.2em">
											<th>
												场所/探头名称
											</th>
											<th>
												场所/探头编码
											</th>
											<th>
												映射场所/探头名称
											</th>
											<th>
												映射场所/探头编码
											</th>
											<th>
												<input type="checkbox" id="checkPage" style="margin-right:0.2em" onclick="makeThisPage();">状态</input>
											</th>
											<th>
												操作
											</th>
										</tr>
								</table>
								</div>
									<div class="mt5em em35 lineh35">
									
									<div class="floatleft div120 dbcolor textcenter lineh35" style="width:10%;cursor:pointer;" 
										onclick="back()">
										<div>
												返回
										</div>
									</div>
									
									<div class="floatleft div120 dbcolor textcenter lineh35" style="width:10%;cursor:pointer;margin-left:1em" 
										onclick="addAllMappingData()">
										<div>
												添加全部
										</div>
									</div>
									
									<div class="floatleft" style="margin-right:0.2em;margin-left:1em;">
										<input type="checkbox" id="checkAll"  onchange="makeAll()">使能所有满足条件的转换项</input>
									</div>
									
										<div id="divfanye" class="floatright fenye">
											<div id="leftFY" onclick="gotopage(2)"
												class="floatleft fyjiantou">
												<img src="images/fanye2_left.png" />
											</div>
											<input type="hidden" id="gotoPage">
											<div class="floatleft fyyeshu">
												<span id="curpage"></span>/
												<span id="allpage"></span>
											</div>
											<div id="rightFY" onclick="gotopage(1)"
												class="floatleft fyjiantou">
												<img src="images/fanye2_right.png" />
											</div>
											<div class="floatleft">
												<input type="text" class="skipinput" id="txtpages" />
											</div>
											<div onclick="gotopage(3)" class="floatleft fywenzi">
												跳转
											</div>
											<div class="cleardiv">
											</div>
										</div>
									</div>
									<div class="em45 widthall"></div>
							</div>
						</div>
					</div>
					<div id="divtips" style="display: none"></div>
				</form>
			</div>
		</div>
		<div class="cleardiv">
		</div>
		<jsp:include page="footer.jsp"></jsp:include>
</html>